import asyncio

async def func1():
    await asyncio.sleep(1)
    print('协程1')

async def func2():
     await asyncio.sleep(1)
     print('协程2')


# python3.7引入的新特性，不用手动创建事件循环
if __name__ == '__main__':
    task = [func1(), func2()]
    asyncio.run(task)
